#ifndef _RAND_SELECT_H_
#define _RAND_SELECT_H_

int rand_partition(int a[], int p, int r);
int rand_select(int a[], int p, int r, int i);
int select_min_max(const int a[], const int p, const int r, int *pMin, int *pMax);
int rand_select_nr(int a[], int p, int r, int i);
int rand_select_median_tst(int argc, char *argv[]);
int rand_select_median(int a[], int p, int r);
int ordered_median(int a[], int p, int q, int b[], int r, int s, int i);
int two_ordered_array_median(int x[], int y[], int n);

#endif
